<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
	//额外的参数封装
	Map<String, String[]> map = request.getParameterMap();
	if(map != null && !map.isEmpty()) {
		//已经定义的参数列表
		String[] hasDefedParams = {"action", "module", "modulePath", "searchDivId", "top", "left"};
		List<String> hasDefedParamList = Arrays.asList(hasDefedParams);
		StringBuilder sb = new StringBuilder();
		for(String key : map.keySet()) {
			//如果已经定义的参数列表中没有该参数，证明是额外的参数，进行参数封装
			if(!hasDefedParamList.contains(key)) {
				sb.append("&").append(key).append("=").append(map.get(key)[0]);
			}
		}
		request.setAttribute("extraParam", sb.toString());
	}
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>个人报告记录</title>
</head>
<body>
	<iframe frameborder="0" class="lrFrame" src="${param.action}?module=${param.module}&modulePath=${param.modulePath}&searchDivId=${param.searchDivId}&top=${param.top}&left=${param.left}${extraParam}"></iframe>
	<script type="text/javascript">
	 	$(function(){
	 		var divTotalHeight = parseFloat($("#tabs").outerHeight());
	 		var titleHeight = parseFloat($("ul[class*='ui-tabs-nav']").outerHeight());
	 		var targetHeight = divTotalHeight - titleHeight;
	 		//求出统计DIV所需要的高度
	 		$(".lrFrame").css({width: "100%", height: targetHeight});
	 	});
	 </script>
</body>
</html>